/**
 * 
 */
package ui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;

/**
 * @author Seb
 *
 */
public class CloseListener implements ActionListener {
	
	private JFrame jFrame;
	
	/**
	 * 
	 */
	public CloseListener(JFrame jFrame) {
		this.jFrame = jFrame;
	}

	/* (non-Javadoc)
	 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
	 */
	@Override
	public void actionPerformed(ActionEvent e) {
		this.jFrame.setVisible(false);
	}

}
